cmake_minimum_required(VERSION 3.15)
project(TestChromium)

set(CMAKE_CXX_STANDARD 17)

set(BASE_INCLUDE_PLATFORM_DIRECTORIES
        /usr/include/glib-2.0
        /usr/lib/x86_64-linux-gnu/glib-2.0/include # for glibconfig.h
        )

link_directories(/usr/lib/x86_64-linux-gnu) #for libglib-2.0.a
set(BASE_LINK_PLATFORM_LIBRARIES
        glib-2.0
        pthread
        )

include_directories(${BASE_INCLUDE_PLATFORM_DIRECTORIES})

set(CHROMIUM_BASE_INCLUDE_DIR /home/syhuang/learning/chromium-base/src)
include_directories(${CHROMIUM_BASE_INCLUDE_DIR})

set(CHROMIUM_BASE_LIB /home/syhuang/learning/chromium-base/src/cmake-build-release)


link_directories(${CHROMIUM_BASE_LIB}) #for libbase.a
add_executable(TestChromium main.cpp)
target_link_libraries(TestChromium base ${BASE_LINK_PLATFORM_LIBRARIES})

